import request from '@/utils/request'
import type { PageDto, PageReqDto } from '../types'
import type { PaySalesRecordItemDto, PaywageCountDto } from './types'

/**
 * 获取发薪统计的数据
 * @param params 
 * @returns 
 */
export function getPaywageCount(params: {
    companyId: number
    startTime: string
    endTime: string
}): Promise<PaywageCountDto> {
    return request.get('/crm-prod/crm/record/get-pay-count', {
        params
    })
}

/**
 * 获取发薪销售记录
 * @param params 
 * @returns 
 */
export function getPaySalesRecord(params: {
    companyId: number
}): Promise<PaySalesRecordItemDto[]> {
    return request.get('/crm-prod/crm/record/get-pay-sales-record', {
        params
    })
}

